<?php


namespace app\api\validate;


use think\Validate;

class GiftChose extends Validate
{
    protected $rule = [
        'gift_id|礼盒' => 'require|integer',
        'mobile|手机号码' => 'requireIf:type,2',
        'type|收获方式' => 'require|integer',
        'province_id|省' => 'requireIf:type,2',
        'city_id|市' => 'requireIf:type,2',
        'district_id|区' => 'requireIf:type,2',
        'detail|详细地址' => 'requireIf:type,2',
        'self_id|自提地址' => 'requireIf:type,1'
    ];
}